const express = require('express')
const app = express()

const cors = require('cors')

// 注册路由模块, app.use()注册全局中间件
app.use(express.urlencoded({ extended: false }))
app.use(cors())

const userRouter = require('./router')

app.use('/api', userRouter)


app.listen(80, () => {
  console.log('server ruinnig 80');
})